﻿// -----------------------------------------------------------------------
// <copyright file="BookDetailsViewModel.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Website.ViewModels.Library
{
	#region Usings

	using System.Collections.Generic;

	using MBOP.Website.ViewModels.Common;

	#endregion

	/// <summary>
	/// Represents view model for the book details.
	/// </summary>
	public class BookDetailsViewModel
	{
		/// <summary>
		/// Gets or sets the book history list.
		/// </summary>
		public IEnumerable<BookSubscriptionViewModel> HistoryList { get; set; }

		/// <summary>
		/// Gets or sets the book waiting list.
		/// </summary>
		public IEnumerable<BookSubscriptionViewModel> WaitingList { get; set; }

		/// <summary>
		/// Gets or sets the book current reader.
		/// </summary>
		public BookSubscriptionViewModel Reader { get; set; }

		/// <summary>
		/// Gets or sets the waiting list mode.
		/// </summary>
		public ListMode WaitingListMode { get; set; }

		/// <summary>
		/// Gets or sets the history list mode.
		/// </summary>
		public ListMode HistoryListMode { get; set; }

		/// <summary>
		/// Gets or sets a value indicating whether that the person is already in waiting list or not.
		/// </summary>
		public bool IsInWaitingList { get; set; }

		/// <summary>
		/// Gets or sets a value indicating whether current person can be added into the waiting list or not.
		/// </summary>
		public bool CanAddInWaitingList { get; set; }

		/// <summary>
		/// Gets or sets an authenticated user id.
		/// </summary>
		public string AuthenticatedUserID { get; set; }
	}
}